

def time_2_second(time):
    second = 0
    print(time)
    e = time.count(':')
    time = [int(i) for i in time.split(":")]
    print(time)
    for j in time:
        second += j*60**e
        e -= 1        
    return second
time1 = "11:20"
time2 = "11:31"
result1 = time_2_second(time1)
result2 = time_2_second(time2)
print(result1)
print(result2)